//
//  TTRecordAdditions.h
//  DBManagerDemo
//
//  Created by CRY on 16/7/1.
//  Copyright © 2016年 CRY. All rights reserved.
//

#import <Foundation/Foundation.h>
#include "TRDefine.h"

@interface TRAdditions : NSObject

@property (nonatomic, strong) NSObject *obj;

+ (void)saveToPersistentStoreAndWaitWithObject:(NSObject *)object
                                    primaryKey:(NSString *)primaryKey
                                      finished:(FinishedBlock)finished;

+ (NSArray *)findAllWithObject:(id)obj
                     parameter:(NSArray *)param
            orderedByAttribute:(NSString *)attribute
                     ascending:(BOOL)ascending
                         limit:(NSInteger)limit
                        offset:(NSInteger)offset;

+ (void)deleteWithObject:(id)obj
                finished:(FinishedBlock)finished;
@end
